<layout name="layout" />

<div class="main-div">
    <form name="main_form" method="POST" action="__SELF__" enctype="multipart/form-data" >
    	<input type="hidden" name="id" value="<?php echo $data['id']; ?>" />
		<input type="hidden" name="old_logo" value="<?php echo $data['logo']; ?>" />
		<input type="hidden" name="old_big_logo" value="<?php echo $data['big_logo']; ?>" />
		<input type="hidden" name="old_mid_logo" value="<?php echo $data['mid_logo']; ?>" />
		<input type="hidden" name="old_sm_logo" value="<?php echo $data['sm_logo']; ?>" />
        <table cellspacing="1" cellpadding="3" width="100%">
            <tr>
                <td class="label">排序：</td>
                <td>
                    <input  type="text" name="sort" value="<?php echo $data['sort']; ?>" />
                </td>
            </tr>
            <tr>
                <td class="label">课程名：</td>
                <td>
                    <input  type="text" name="course_name" value="<?php echo $data['course_name']; ?>" />
                </td>
            </tr>
            <tr>
                <td class="label">课程展示名：</td>
                <td>
                    <input  type="text" name="course_show_name" value="<?php echo $data['course_show_name']; ?>" />
                </td>
            </tr>
            <tr>
                <td class="label">课程分类：</td>
                <td>
                    <?php buildSelect('course_category','cat_id','id','name',$data['cat_id']); ?>
                </td>
            </tr>
            <tr>
                <td class="label">课程开始时间：</td>
                <td>
                    <input class="layui-input" name="start_time" placeholder="开始时间" value="<?php echo $data['start_time']; ?>" onclick="layui.laydate({elem: this, istime: true, format: 'YYYY-MM-DD hh:mm:ss'})">
                </td>


            </tr>
            <tr>
                <td class="label">课程结束时间：</td>
                <td>
                    <input class="layui-input" name="end_time" placeholder="结束时间" value="<?php echo $data['end_time']; ?>" onclick="layui.laydate({elem: this, istime: true, format: 'YYYY-MM-DD hh:mm:ss'})">
                </td>
            </tr>
            <tr>
                <td class="label">最大参与人数：</td>
                <td>
                    <input id="" type="text" name="user_count" value="{$data.user_count}" />
                </td>
            </tr>
            <tr>
                <td class="label">颜色配置：</td>
                <td>
                    <input id="color" type="text" name="color" style="background: {$data.color};" value="{$data.color}" />
                </td>
            </tr>
            <tr>
                <td class="label">课程等级：</td>
                <td>
                    <input  type="text" name="course_level" value="<?php echo $data['course_level']; ?>" />
                </td>
            </tr>
            <tr>
                <td class="label">课程价格：</td>
                <td>
                    <input  type="text" name="course_price" value="<?php echo $data['course_price']; ?>" />
                </td>
            </tr>
            <tr>
                <td class="label">课程体验价格：</td>
                <td>
                    <input  type="text" name="course_exp_price" value="<?php echo $data['course_exp_price']; ?>" />
                </td>
            </tr>
            <tr>
                <td class="label">课程备注：</td>
                <td>
                	<textarea id="course_comment" name="course_comment"><?php echo $data['course_comment']; ?></textarea>
                </td>
            </tr>
            <tr>
                <td class="label">课程地点：</td>
                <td>
                	<textarea id="course_addr" name="course_addr"><?php echo $data['course_addr']; ?></textarea>
                </td>
            </tr>
            <tr>
                <td class="label">教室：</td>
                <td>
                    <?php buildSelect('classroom','classroom_id','id','classroom_name',$data['classroom_id']); ?>                </td>
            </tr>
            <tr>
                <td class="label">上课教师：</td>
                <td>
                    <?php buildSelect('teacher','teacher_id','id','teacher_name',$data['teacher_id']); ?>
                </td>
            </tr>
            <tr>
                <td class="label"> 上课积分：</td>
                <td>
                    <input  type="text" name="jifen" value="<?php echo $data['jifen']; ?>" />
                </td>
            </tr>
            <tr>
                <td class="label">是否显示：</td>
                <td>
                    <input  type="text" name="is_show" value="<?php echo $data['is_show']; ?>" />
                </td>
            </tr>
            <tr>
                <td class="label">封面图片：</td>
                <td>
                	<input type="file" name="logo" /><br />
                	<?php showImage($data['logo'], 100); ?>                </td>
            </tr>
            <tr>
                <td colspan="99" align="center">
                    <input type="submit" class="button" value=" 确定 " />
                    <input type="reset" class="button" value=" 重置 " />
                </td>
            </tr>
        </table>
    </form>
</div>

<link href="__PUBLIC__/umeditor1_2_2-utf8-php/themes/default/css/umeditor.css" type="text/css" rel="stylesheet">
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/umeditor1_2_2-utf8-php/umeditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/umeditor1_2_2-utf8-php/umeditor.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/umeditor1_2_2-utf8-php/lang/zh-cn/zh-cn.js"></script>
<link href="__PUBLIC__/datetimepicker/jquery-ui-1.9.2.custom.min.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/datetimepicker/jquery-ui-1.9.2.custom.min.js"></script>
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/datetimepicker/datepicker-zh_cn.js"></script>
<link rel="stylesheet" media="all" type="text/css" href="__PUBLIC__/datetimepicker/time/jquery-ui-timepicker-addon.min.css" />
<script type="text/javascript" src="__PUBLIC__/datetimepicker/time/jquery-ui-timepicker-addon.js"></script>
<script type="text/javascript" src="__PUBLIC__/ColorPicker/jquery.js"></script>
<script type="text/javascript" src="__PUBLIC__/ColorPicker/jquery.colorpicker.js"></script>
<!-- <script type="text/javascript" src="__PUBLIC__/datetimepicker/time/i18n/jquery-ui-timepicker-addon-i18n.min.js"></script> -->
<!--layui-->
<script type="text/javascript" src="__PUBLIC__/Admin/css/layui.css"></script>
<script type="text/javascript" src="__PUBLIC__/Admin/layui.js"></script>
<script>
    $(document).ready(function() {


        $("#color").colorpicker({

            fillcolor:true

        });
        layui.use('laydate', function(){
            var laydate = layui.laydate;
            document.getElementById('start_time').onclick = function(){

            }});

    });
</script>
